package com.huahua.graduateschoolspringboot.entity.dto.light;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * @author LoveHuaHua
 * @date 2023年05月07日 10:46
 * @description believe in yourself
 */
@Data
public class LightHeartDTO {


    @JsonProperty("LampStatus")
    private LampStatusDTO LampStatus;
    @JsonProperty("mode")
    private int mode;
    @JsonProperty("status")
    private int status;
    @JsonProperty("time")
    private TimeDTO time;

    public LampStatusDTO getLampStatus() {
        return LampStatus;
    }

    public void setLampStatus(LampStatusDTO LampStatus) {
        this.LampStatus = LampStatus;
    }

    public int getMode() {
        return mode;
    }

    public void setMode(int mode) {
        this.mode = mode;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public TimeDTO getTime() {
        return time;
    }

    public void setTime(TimeDTO time) {
        this.time = time;
    }

    public static class LampStatusDTO {
        @JsonProperty("Brightness")
        private int Brightness;
        @JsonProperty("status")
        private List<Integer> status;

        public int getBrightness() {
            return Brightness;
        }

        public void setBrightness(int Brightness) {
            this.Brightness = Brightness;
        }

        public List<Integer> getStatus() {
            return status;
        }

        public void setStatus(List<Integer> status) {
            this.status = status;
        }
    }

    public static class TimeDTO {
        @JsonProperty("end")
        private List<Integer> end;
        @JsonProperty("start")
        private List<Integer> start;

        public List<Integer> getEnd() {
            return end;
        }

        public void setEnd(List<Integer> end) {
            this.end = end;
        }

        public List<Integer> getStart() {
            return start;
        }

        public void setStart(List<Integer> start) {
            this.start = start;
        }
    }
}
